<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery-3.5.1.min.js"></script>
    <script>
        $(function () {
            $("p").click(function () {
                $(this).text("world");
                $.post("../test",{name:"wang",age:13},function (data) {
                    alert(data);
                },"text");
            })
        })


    </script>
</head>
<body>
<p>nihao</p>
</body>
</html>